<!--
 * @Descripttion: 
 * @Author: YuZhenJing
 * @Date: 2020-06-21 10:02:38
 * @LastEditors: YuZhenJing
 * @LastEditTime: 2020-06-21 10:09:05
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 掌握 | 或 知识点
      // 掌握 () 分组知识点
      let tel = "020-9999999";
      console.log(/(010|020)\-\d{7,8}/.test(tel));
    </script>
  </body>
</html>
